package messagesPacks;

import java.util.ArrayList;

import Entity.BorrowRecored;
import messagesPacks.GenericMessage.msgType;

public class ViewHistoryMessage extends GenericMessage
{
	private static final long serialVersionUID = 1L;
	
	private String userID;
	public  int msg_result ;
	private ArrayList <BorrowRecored> borrowList; //ArrayList that holds all the borrow records
	
	public ViewHistoryMessage()
	{
		this.type = msgType.ViewHistoryMSG;
		
		this.borrowList = new ArrayList<BorrowRecored>();
		this.msg_result = -20 ; 
	}
	
	
	
//===================================================================	
//                       Getters & Setters
//===================================================================
	public ArrayList<BorrowRecored> getBorrowList() 
	{
		return this.borrowList;
	}


	public void setBorrowList(ArrayList<BorrowRecored> borrowList) 
	{
		this.borrowList.addAll(borrowList);
	}

	public int getMsg_result()
	{
		return msg_result;
	}

	public void setMsg_result(int msg_result) 
	{
		this.msg_result = msg_result;
	}

	public String getUserID()
	{
		return userID;
	}

	public void setUserID(String userID) 
	{
		this.userID = userID;
	}

	
}//class


